package com.web_bloks.document.client;


/**
 * DocumentListener
 * 
 * @author Jean-Lou Dupont
 *
 */
public interface DocumentListener {

	/**
	 * Event to signal that 'documentName' is being loaded
	 *  
	 * @param documentName
	 * @param targetRegion : an identifier relating the document and its target rendering/displaying place
	 */
	public void onDocumentChanging(String documentName, String targetRegion);
	
	/**
	 * 
	 * @param doc the document loaded
	 * @return boolean True if the document was rendered/displayed successfully
	 */
	public boolean onDocumentChanged(Document doc);
	
	/**
	 * Announces the successful rendering/displaying of the document
	 * 
	 * @param doc
	 */
	public void onDocumentRendered(Document doc);
	
}//END